package cn.stronglink.asset.module.basicdata.assetType.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.AssetType;
import cn.stronglink.asset.model.Department;
import cn.stronglink.asset.module.basicdata.assetType.vo.AssetTypeTreeNodeVo;

public interface AssetTypeMapper {
	
	public Department qryDeptById(@Param("id")Long id);

	public List<AssetType> queryAssetTypeByPid(Pagination page,@Param("pid")Long pid,@Param("name")String name);
	
	public void removeAssetType(@Param("id")Long id);

	public int getChildAssetTypeCount(@Param("id")Long id);

	public List<AssetTypeTreeNodeVo> queryAssetType();

	public AssetTypeTreeNodeVo queryRootAssetType();

	public void insertAssetType(AssetType assetType);

	public void updateAssetType(AssetType assetType);

	public List<AssetType> getListAll();
	
	public List<AssetType> getListAllNotRack();

	public Long getTypeIdByName(@Param("typeName") String typeName);

	public int getIsUsed(@Param("id") Long id);

	public AssetType qryById(@Param("id") Long id);

	public List<AssetTypeTreeNodeVo> queryRoot();

	public List<AssetTypeTreeNodeVo> queryRootTop();
}
